import pytest
from log_mail import log_set,send_mail  #把日志邮件文件的两个方法导入进来
if __name__ == '__main__':
    log_set()    #日志采集
    pytest.main(["-s","testcase.py","--alluredir==ReportData","--clean-alluredir"])
    import os
    os.system("allure generate ReportData -o serviceplatformlog --clean")
    send_mail(["serviceplatformlog.txt"])